Rejuvenating C++ programs through demacrofication
نویسندگان
چکیده
We describe how legacy C++ programs can be rejuvenated using C++11 features such as generalized constant expressions, perfect forwarding, and lambda expressions. In general, this work develops a correspondence between different kinds of macros and the C++ declarations to which they should be transformed. We have created a set of demacrofication tools to assist a developer in the rejuvenation of C++ programs. To evaluate the work, we have applied the rejuvenation tools to a number of C++ libraries to assess the extent to which these libraries might be improved by demacrofication. Results indicate that between 68 and 98% of potentially refactorable macros could be transformed into C++11 declarations. Additional experiments demonstrate why these numbers are not readily achieved using fully automated rejuvenation tools. We also discuss some techniques to further assist in automating rejuvenation process.
منابع مشابه
Rejuvenating clinician-scientist training.
Clinician-scientists are becoming increasingly rare in medicine as a whole, but especially in ophthalmology. There is a structural gap between MD-PhD training and K-series awards where interested candidates go through residency and fellowship without any structured research exposure or involvement. Furthermore, the success rate of the MD-PhD and K awards leaves much to be desired. The authors p...
متن کاملRejuvenating Customer Management: How to Make Knowledge For, From and About Customers Work
In recent years, many companies have strived to enhance their customer-relating capability with knowledge management instruments. A survey conducted by the authors, however, indicates that successful implementations of such initiatives are still comparatively rare. In this paper we present a cross-case analysis of three companies that we identified as ‘‘good practices’’ in rejuvenating customer...
متن کاملSpatiotemporal structures in aging and rejuvenating glasses.
Complex spatiotemporal structures develop during the process of aging glasses after cooling and of rejuvenating glasses on heating. The key to understanding these structures is the interplay between the activated reconfiguration events that generate mobility and the transport of mobility. These effects are both accounted for by combining the random first-order transition theory of activated eve...
متن کاملFluctuating mobility generation and transport in glasses.
In the context of the random first order transition theory we use an extended mode coupling theory of the glass transition that includes activated events to account for spatiotemporal structures in rejuvenating glasses. We numerically solve fluctuating dynamical equations for mobility and fictive temperature fields which capture both mobility generation through activated events and facilitation...
متن کاملThe effect of resistance training intervention on serum levels of some anti-aging and rejuvenating proteins in older men
Introduction: exercise interventions can play an important role in delaying aging. Klotho protein and Growth Differentiation Factor 11 (GDF11) are a new family of biochemical theories of the aging process. The aim of the present study was to investigate the effect of 12 weeks of resistance training on serum levels of Klotho anti-aging proteins and rejuvenating of GDF11 factor in elderly men. Me...
متن کامل